home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3082 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  896 b 

  1. Path: nntp.igs.net!usenet
  2. From: kkalb@igs.net (Kevin Kalbfleisch)
  3. Newsgroups: comp.lang.c++
  4. Subject: Nested TPopupMenu - how to?
  5. Date: Mon, 22 Jan 1996 04:44:41 GMT
  6. Organization: IGS - Information Gateway Services
  7. Message-ID: <4dv4ej$obr@nntp.igs.net>
  8. NNTP-Posting-Host: igs2-06.igs.net
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. I am writing a program that dynamically creates a TPopup menu which
  12. displays information dependant on where the mouse was clicked.
  13. Setting up a single leve is easy:
  14.  
  15.     char temp[30];
  16.  
  17.     if( UnitPopupMenu )
  18.         delete UnitPopupMenu;
  19.     UnitPopupMenu = new TPopupMenu();
  20.     strcpy(temp,"Profile ID#: ");
  21.     strcat(temp, aUnit->getUnitID());
  22.     UnitPopupMenu->AppendMenu(MF_STRING, CM_UNITID, temp);
  23.  
  24. Do I create a new popup for each additional level?  If so, how do I
  25. add it?
  26.  
  27. Any help you could provide would be greatly appreciated..
  28.  
  29. BTW, I'm using BC++ 4.5 with OWL 2.x.
  30.  
  31. Kevin
  32.     
  33.  
  34.